﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;

namespace KNXLibrary
{
    public static class ServiceLocator
    {
        public static T Get<T>()
        {
            return ObjectFactory.GetInstance<T>();
        }

        public static T Get<T>(Type type)
        {
            return ObjectFactory.With(type).GetInstance<T>();
        }
    }
}
